package top.xchch.creational.factory.abstractfactory;

public abstract class BasePizzaFactory {

    protected abstract BasePizza createPizza(String orderType);

    public BasePizza make(String orderType){
        BasePizza pizza = createPizza(orderType);

        pizza.prepare();
        pizza.bake();
        pizza.cut();
        pizza.box();

        return pizza;
    }
}
